package meconsea.life.cms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="CMS_ARTICLE_ALL")
@NamedQueries({
	@NamedQuery(name=VArticle.V_ARTICLE_ALL,query="SELECT O.id,O.title,O.subtitle,O.keywords,O.summary,O.specialId,O.artClass,O.artClassName,O.artClassPath,O.indexImg,O.homeImg,O.artResource,O.author,O.commend,O.top,O.hot,O.comment,O.clicks,O.statusFlg,O.auditLevel,O.htmlPath,O.isHeader,O.createdAt,O.changedAt,O.artType FROM VArticle O ORDER BY O.changedAt"),
	@NamedQuery(name=VArticle.HEADER_ART_CLASS,query="SELECT O.id,O.title,O.subtitle,O.keywords,O.summary,O.specialId,O.artClass,O.artClassName,O.artClassPath,O.indexImg,O.homeImg,O.artResource,O.author,O.commend,O.top,O.hot,O.comment,O.clicks,O.statusFlg,O.auditLevel,O.htmlPath,O.isHeader,O.createdAt,O.changedAt,O.artType FROM VArticle O WHERE O.isHeader=:isHeader ORDER BY O.changedAt")
})
public class VArticle extends Article {
	public static final String HEADER_ART_CLASS = "V_HEADER_ART";
	public final static String V_ARTICLE_ALL = "v_article_all";
	
	@Column(name="art_type")
	private String artType;

	public String getArtType() {
		return artType;
	}

	public void setArtType(String artType) {
		this.artType = artType;
	}
}
